import { GoogleEngine, YoudaoEngine, BingEngine } from "./easy";
import { WordEngine } from "./types";
import { Dict } from "../dict";

export enum WordEngineType {
  Google = "google",
  Youdao = "youdao",
  Bing = "bing"
}

export const engineDict = Dict<WordEngine>([
  [WordEngineType.Bing, new BingEngine()],
  [WordEngineType.Youdao, new YoudaoEngine()],
  [WordEngineType.Google, new GoogleEngine()]
]);

export const getEngine = engineDict.getFunc;
export const engineRange = engineDict.range;
